echo "install all driver"
#sudo dmesg -c
echo "=================rebuild PCIE_CCP903T BASE driver ================"
cd ./CCP907_SEC_MODULE/CCP903_SEC_BASE
make
ls -al

echo "=================rmmod relation CDEV_903T driver ================="
sudo rmmod CDEV_903T
echo "=================rmmod PCIE_CCP903T driver ================="
sudo rmmod PCIE_CCP903T
echo "=================insmod PCIE_CCP903T driver ================="
sudo insmod PCIE_CCP903T.ko
echo "=================rebuild PCIE_CCP903T driver success================="

# return parent path
cd ../..
echo "=================rebuild PCIE_CCP903T CDEV driver ================"

cd ./CCP907_SEC_MODULE/CCP903_SEC_CDEV

make
ls -al
#echo "=================rmmod CDEV_903T driver ================="
#sudo rmmod CDEV_903T
echo "=================insmod CDEV_903T driver ================="
sudo insmod CDEV_903T.ko

lsmod | grep '903'
echo "=================rebuild CCP903_SEC_CDEV driver success================="



